<template>
    <div class="box">
      Books1TableCom
      <table>
        <tr>
          <th>序号</th>
          <th>书名</th>
          <th>坐着</th>
          <th>出版社</th>
          <th>操作</th>
        </tr>

        <tr v-for="item in list" :key="item.id">
          <slot name="table" :row="item"></slot>
        </tr>
      </table>
    </div>
</template>

<script>
export default {
  name: 'Books1TableCom',
  props: {
    list: {
      type: Array,
      default: () => []
    }
  },
  data () {
    return {

    }
  },

  mounted () {

  },

  methods: {

  }
}
</script>

<style scoped>
table {
  border:1px solid red
}

tr th,
tr td {
  border:1px solid red

}
</style>
